package net.mingsoft.config;

import org.springframework.context.annotation.*;
import org.springframework.beans.factory.annotation.*;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.view.freemarker.*;
import org.springframework.web.servlet.view.*;
import com.jagregory.shiro.freemarker.*;
import java.io.*;
import freemarker.template.*;
import javax.annotation.*;

@Configuration
public class FreemarkerConfig
{
    @Autowired
    protected freemarker.template.Configuration configuration;
    @Autowired
    protected FreeMarkerConfigurer configurer;
    @Autowired
    protected FreeMarkerViewResolver resolver;
    @Autowired
    protected InternalResourceViewResolver springResolver;
    
    @PostConstruct
    public void init() throws IOException, TemplateException {
        this.configuration.setSharedVariable("shiro", (TemplateModel)new ShiroTags());
    }
}
